package com.example.a09;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan("com.example.a09")
@Slf4j
public class Application09 {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext(Application09.class);
        E e = context.getBean(E.class);
        log.info("{}", e.getF1().getClass());
        log.info("{}", e.getF1());
        log.info("{}", e.getF1());

        log.info("{}", e.getF2().getClass());
        log.info("{}", e.getF2());
        log.info("{}", e.getF2());

        log.info("{}", e.getF3().getClass());
        log.info("{}", e.getF3());
        log.info("{}", e.getF3());

        log.info("{}", e.getF4().getClass());
        log.info("{}", e.getF4());
        log.info("{}", e.getF4());

        context.close();
    }
}
